Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize use of context #585

Conversation

xiaodong-ji
Copy link
Contributor

为 context 类引入 context

Summary

close #520

Solution Description

Copy link
Contributor

@wayyoungboy wayyoungboy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete the input variable of stdio and replace it with context.stdio for output.

@@ -325,10 +325,10 @@ def get_obproxy_version(context):
# Only applicable to the community version


def get_observer_version_by_sql(ob_cluster, stdio=None):
def get_observer_version_by_sql(context, ob_cluster, stdio=None):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete the input variable of stdio and replace it with context.stdio for output.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed it

@wayyoungboy wayyoungboy merged commit a513212 into oceanbase:3.0.0-dev Nov 28, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants